package com.hspedu.override_;

/**
 * 编写一个Student类，继承Person类，增加id、score属性/private， 以及构造器，定义say方法（返回自我介绍的信息）
 */
public class Student extends Person{
    private int id;
    private int score;

    @Override
    public String say() {
        return "Student的自我介绍";
    }

    public Student() {
    }

    public Student(int id, int score) {
        this.id = id;
        this.score = score;
    }

    public Student(String name, int age, int id, int score) {
        super(name, age);
        this.id = id;
        this.score = score;
    }
}
